import request from '@/utils/request.js'
// 获取组织架构数据
export function companyDepartment() {
  return request({
    url: '/company/department'
  })
}
// 获取简单员工列表
export function sysUserSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
// 新增部门
// restFUl接口规范：增(post data)删(delete:在请求地址上拼接id)改(put url需要拼接id  data)查(get,params)
export function companyDepartmentPost(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 编辑部门
export function companyDepartmentPut(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
// 删除部门
export function companyDepartmentDelete(id) {
  return request({
    url: '/company/department/' + id,
    method: 'delete'
  })
}
